package basic50.fortieth;

import java.util.Scanner;

public class Basic40 {
    public static void main(String[] args) {
      //  题目：字符串排序。
        Scanner sc = new Scanner(System.in);
        String str = sc.nextLine();
        char[] ch = str.toCharArray();
        for (int i = 0; i < ch.length; i++) {
            for (int j = 0; j < ch.length -i -1; j++) {
                if (ch[j] > ch[j+1]) {
                    swap(j,j+1,ch);
                }
            }
        }
        for (char c : ch) {
            System.out.print(c);
        }
    }
    public static void swap(int i, int j, char[] ch) {
        char temp = ch[i];
        ch[i] = ch[j];
        ch[j] = temp;
    }
}
